#pragma once

#include "glew.h"

#ifdef DEBUG
#define GL_CHECK() \
 do { \
	GLenum err = glGetError(); \
	if(err != 0) { \
		CString str; \
		str.Format("%s:%d : GL error = 0x%04X\n", __func__, __LINE__); \
		AfxMessageBox(str); \
		} } while(0)
#else
#define GL_CHECK()  0
#endif

class CGLUtil
{
public:
	CGLUtil();
	virtual ~CGLUtil();

	void init();
};

